﻿using BizModels;
using BizModels.Common;
using IRepositories;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;

namespace HinokyRESTApi.Controllers
{
    public class BackLogController : ApiController
    {
        private IBackLogRepository _backLogRepository;

        public BackLogController(IBackLogRepository backLogRepository)
        {
            _backLogRepository = backLogRepository;
        }

        public IEnumerable<BackLogT> GetBackLogList()
        {
            return _backLogRepository.GetBackLogList(new BackLogSearchT());
        }

        public BackLogT GetBackLog(int idx)
        {
            return _backLogRepository.GetBackLog(idx);
        }
    }
}
